/* 
 * Copyright (c) 2021-2024 SigScalr, Inc.
 *
 * This file is part of SigLens Observability Solution
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

* {
    box-sizing: border-box;
}

:root {
    --complete-bg-img: url(../assets/check-icon-black.svg);
    --save-btn-img: url(../assets/save-icon.svg);
    --dashboard-btn-img: url(../assets/dashbaord-white-icon.svg);
    --alerting-btn-img: url(../assets/alerting-white-icon.svg);
    --download-btn-img: url(../assets/download-icon-dark.svg);
    --show-record-btn-img: url(../assets/show-record-btn-dark.svg);
    --border-shadow: var(--shadow-1);
    --code-input-box-color: var(--black-1);
    --qb-input-box-color: var(--black-2);
    --qb-box-bg: var(--black-1);
    --cross-button: var(--white-0);
}

[data-theme='light'] {
    --complete-bg-img: url(../assets/check-icon-light.svg);
    --save-btn-img: url(../assets/save-icon-light.svg);
    --dashboard-btn-img: url(../assets/dashboard-btn-light.svg);
    --alerting-btn-img: url(../assets/alerting-btn-light.svg);
    --download-btn-img: url(../assets/download-icon-light.svg);
    --show-record-btn-img: url(../assets/show-record-btn-light.svg);
    --border-shadow: var(--shadow-2);
    --code-input-box-color: var(--white-1);
    --qb-input-box-color: var(--white-1);
    --qb-box-bg: var(--white-0);
    --cross-button: var(--purple-3);
}

#filter-container {
    margin: 0;
    background-color: var(--top-bar-bg-color-regular);
    display: flex;
    flex-wrap: wrap;
    border-radius: 5px;
    height: auto;
    width: fit-content;
}

#progress-div {
    margin-top: -3px;
    margin-bottom: 8px;
}

.sidebar-icon {
    z-index: 1;
}

.dashboard-box {
    height: 100vh;
    position: relative;
}

input.form-control {
    background: var(--code-input-box-color) !important;
}

.ui-autocomplete {
    width: 200px;
}

.group-by-box {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.tags-input {
    display: flex;
    flex-direction: row;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 570px;
}

.filter-box ul {
    list-style: none;
    margin: 0px;
    flex: 1;
    flex-wrap: wrap;
    height: auto;
    padding-left: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-box ul::-webkit-scrollbar {
    height: 0;
}

.filter-box li {
    display: flex;
    flex-direction: row;
    color: var(--text-color);
    padding: 0px 5px;
    margin-right: 5px;
    height: 20px;
    align-items: center;
    white-space: nowrap;
    font-size: 12px;
}

.tags-input input[type="text"] {
    border: none;
    outline: none;
    height: 40px;
}

.filter-box input[type="text"]:focus {
    outline: none;
}

.delete-button {
    border: none;
    color: var(--cross-button);
    background: none;
    font-size: 22px !important;
    margin-left: 3px;
    margin-bottom: 2px;
}

.display-rule {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
}

.func-input {
    width: 500px;
}

.column-input {
    width: 500px;
}

.tags-list {
    display: flex;
    flex-direction: row;
}

.filter-box {
    border: 1px solid var(--border-btn-color);
    min-height: 26px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    cursor: text;
}

.builder-div {
    background-color: var(--drop-down-btn-bg-regular);
    padding: 3px 6px;
    height: var(--height-md);
    border: solid var(--border-btn-color);
    border-width: 1px 0.5px;
}

.completed,
.cancel-enter {
    padding: 0px;
    margin: 0 4px 0 0;
    height: 26px;
    min-width: 24px;
    width: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: var(--default-tab);
    color: var(--text-color);
}

.value-first,
.column-first {
    min-width: 120px;
    height: 26px;
    color: var(--text-color) !important;
    margin-right: 5px;
}

.symbol,
.value-first,
.column-first {
    border: 1px solid var(--border-switch);
}

.add-third {
    margin: -1px;
}

.filter-con {
    position: relative;
    min-width: 300px;
    display: inline-block;
}

.column-third {
    width: 100% !important;
    height: 26px;
    margin-right: 10px;
}

.third-box {
    width: 100%;
    border-radius: 0 5px 5px 0;
}

.add-filter {
    position: absolute;
    border: 1px solid var(--border-btn-color);
    border-radius: 2px;
    height: 34px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 4px;
    background: var(--code-input-box-color);
    visibility: hidden;
    z-index: 100;
    font-size: 13px;
}

.ui-autocomplete {
    max-height: 170px !important;
    overflow-y: scroll;
    overflow-x: hidden;
    border-radius: 3px !important;
    font-size: 12px !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.ui-menu {
    width: 120px !important;
    font-size: 12px !important;
}

.ui-state-hover,
.ui-state-active,
.ui-state-focus {
    color: #ffffff;
    text-decoration: none;
    background-color: #2D69BC;
    cursor: pointer;
    height: 34px;
}

.ui-menu-item .ui-menu-item-wrapper {
    background: var(--ui-widget-bg-color);
    color: var(--text-color);
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front {
    width: max-content !important;
    min-width: 80px;
    border: 1px solid var(--ui-widget-border-color);
}

.ui-tabs-tab {
    border-radius: 10px;
}

#custom-code-tab.ui-widget.ui-widget-content {
    width: 100% !important;
    z-index: 1;
}

.custom-code-tab {
    border: 0 !important;
    font-size: var(--font-size-sm);
    background-color: var(--bg-color);
}

.ui-tabs .ui-tabs-panel {
    padding: 0 !important;
    width: 100%;
    border: none;
}

.ui-tabs ui-tabs-nav li {
    margin-left: 17px !important;
    width: 121px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.query-text {
    height: 40px;
    width: 100%;
}

.custom-reset-button {
    background-color: transparent;
    color: var(--table-or-regular-text-color);
    font-family: Inter, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
    font-size: 12px;
    padding: 3px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
    margin-top: -6px;
    transition: background-color 0.2s ease-in-out;
    white-space: nowrap;
    text-decoration: underline;
}

.custom-reset-button:hover,
.custom-reset-button:focus {
    background-color: var(--drop-down-btn-bg-hover);
    color: var(--text-color);
    text-decoration: none;
    outline: none;
}

.search-img {
    background-image: url("../assets/search-img.svg");
    height: 26px;
    width: 26px;
    background-color: var(--purple-2);
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: center;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

.run-filter-btn {
    background-image: url("../assets/search-img.svg");
    height: 26px;
    width: 26px;
    background-color: var(--purple-2);
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: center;
    border-radius: 0 5px 5px 0;
}

.cancel-search {
    background-image: url("../assets/close_white.svg") !important;
}

.run-filter-btn:hover,
#run-filter-btn.active,
.search-img:hover,
.search-img.active {
    background-color: var(--btn-hover-or-click-bg-color);
}

.run-filter-btn:focus {
    border-radius: 0 5px 5px 0;
}

.query-box {
    padding: 8px 24px 0 24px;
    display: flex;
    flex-direction: row;
}

.tab-list {
    width: 94px;
    height: 24px;
    border-radius: 4px;
    background: var(--alert-background);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 3px !important;
    margin: 0px !important;
}

#tabs-2 {
    display: none;
}

.dropdown-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.dropdown-container {
    display: flex;
}

.tab-li {
    height: 34px;
    border-radius: 5px;
}

.tab-li-query {
    width: 125px;
}

.tab-li-code {
    width: 80px;
}

.ui-state-default {
    background-color: var(--default-tab) !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: none !important;
}

.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited,
a.ui-button,
a:link.ui-button,
a:visited.ui-button,
.ui-button {
    color: var(--border-switch) !important;
}

.ui-tabs .ui-tabs-nav .ui-state-active {
    background: var(--tab-active-background) !important;
    border: 1px solid var(--purple-1) !important;
    cursor: pointer;
}

.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
    color: var(--text-color) !important;
    padding: 2px 5px !important;
}

.ui-state-hover {
    background-color: rgba(99, 71, 217, 0.15);
    border: 1px solid var(--purple-1);
}

.ui-tabs .ui-tabs-nav li {
    margin: 0;
    background: var(--myOrg-input) !important;
    height: 100%;
    font-size: 10px;
    border-radius: 4px;
}

.tab-chart-list .tab-li {
    margin: 0;
    background: var(--myOrg-input) !important;
    height: 100% !important;
    font-size: 12px !important;
    border-radius: 4px;
}

.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
    padding: 2px 5px;
    outline: none;
    text-decoration: none;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active {
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.disabled-tab {
    pointer-events: none;
    opacity: 0.5;
}


.completed,
.cancel-enter {
    border: 1px solid var(--border-switch);
}

.cancel-enter {
    font-size: 17px !important;
    padding-bottom: 3px;
}

.form-control {
    border-right: 0;
    height: 32px;
}

.filter-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.query-text,
.ui-widget,
#filter-input.form-control {
    font-family: Inter, BlinkMacSystemFont, Helvetica, Arial, sans-serif !important;
}

textarea.form-control#filter-input {
    min-height: 26px;
    box-sizing: border-box;
    resize: none;
    overflow: hidden;
    transition: height 0.3s ease;
    padding-top: 4px;
    background-color: var(--top-bar-bg-color-regular);
    color: var(--text-color) !important;
    position: relative;
    width: 100%;
    border: 1px solid var(--search-input-border);
    border-radius: 5px 0 0 5px !important;
}

textarea.form-control:focus {
    box-shadow: none;
    box-shadow: var(--box-shadow);
    border-bottom: 2px solid var(--purple-2) !important;
}

#filter-input.form-control.expanded,
textarea.form-control.expanded {
    white-space: pre-wrap;
    overflow-y: auto;
}

#textarea-ellipsis {
    position: absolute;
    bottom: 2px;
    right: 8px;
    font-weight: 600;
    color: var(--black-5);
    padding: 0 4px;
    pointer-events: none;
    z-index: 2;
    display: none;
    font-size: 22px;
    font-family: auto;
    letter-spacing: 1px;
}

.ui-widget {
    height: auto;
    width: auto;
    padding: 0px;
}

.ui-autocomplete::-webkit-scrollbar {
    width: 0;
}

.completed {
    background-image: var(--complete-bg-img);
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: center;
}

.select-box {
    border-color: var(--purple-1);
}

.dropdown-menu {
    min-width: 0;
    padding: 0;
}




.saveq-btn {
    background-image: var(--save-btn-img);
}

.add-logs-to-db-btn {
    background-image: var(--dashboard-btn-img);
}

.alert-from-logs-btn {
    background-image: var(--alerting-btn-img);
}

.download-all-logs-btn {
    background-image: var(--download-btn-img);
}

.show-record-intro-btn {
    background-image: var(--show-record-btn-img);
    position: relative;
    border-radius: 5px;
    height: 40px;
}

#save-query-div {
    display: flex;
    justify-content: flex-start;
    position: relative;
    gap: 8px;
}

.below-btn-img {
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    height: 24px;
    width: 24px;
    border: 1px solid var(--border-btn-color);
    padding: 0px;
}

.below-btn-img:hover,
.add-con:hover,
.cancel-enter:hover,
.completed:hover,
.below-btn-img.show {
    background-color: var(--drop-down-btn-bg-hover) !important;
    border: 1px solid var(--border-btn-color) !important;
}

.download-all-logs-btn.below-btn-img.show {
    background-image: var(--download-btn-img) !important;
    background-size: 50% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.run-filter-btn {
    height: 26px;
    border-radius: 0 5px 5px 0;
    border: none;
}

.filter-container {
    display: flex;
    background-color: var(--top-bar-bg-color-regular);
}

.search-bar-container {
    width: 100%;
}

.show-record-popup {
    display: none;
}

div.show-record-popup {
    width: 404px;
    height: auto !important;
    padding: 16px;
}

div.show-record-popup .ui-dialog-buttonpane {
    height: 45px;
}

div.show-record-popup .ui-dialog-buttonpane button {
    width: auto;
    margin: 0;
    margin-top: 8px;
}

.ui-dialog-buttonpane {
    position: relative;
    padding: 16px;
}

.ag-theme-mycustomtheme .ag-root-wrapper {
    border: 1px solid var(--border-btn-color);
}

.ag-row,
.measureAggGrid,
.LogResultsGrid {
    background-color: var(--default-tab) !important;
}

.ag-row::after,
.LogResultsGrid .ag-row-even::after {
    content: '';
    position: absolute;
    left: 10px;
    width: calc(100% - 20px);
    height: 1px;
    background-color: var(--panel-table-line-color);
    bottom: 0;
}

.aggregations {
    color: var(--black-5) !important;
    margin-left: 10px;
}

.ag-header-viewport {
    border-bottom: 1px solid var(--panel-table-line-color);
}

.stop-search {
    background-color: var(--border-btn-color);
    opacity: 0.5;
    cursor: not-allowed;
}

.stop-search:hover {
    background-color: var(--border-btn-color);
}

#custom-chart-tab {
    position: relative;
    width: 100%;
    height: 100%;
    background: none;
    display: none;
}

.tab-chart-list {
    height: 24px;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-right: 8px !important;
    background-color: var(--myOrg-input);
    padding: 3px !important;
    width: fit-content;
    margin-left: 4px !important;
}

#logs-view-controls {
    left: 155px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

#tabs-chart,
#showTable {
    display: none;
    margin: 8px 0 0 0;
    height: calc(100% - 32px);
}

#showTable {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}


.histo-container {
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: none;
}

#histogram-container {
    height: var(--histogram-height, 180px);
    min-height: 100px;
    max-height: 50vh;
    background: var(--black1-to-white0);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: block;
    position: relative;
    overflow: hidden;
}

#histogram-container canvas {
    cursor: crosshair !important;
}

#histogram-container .resize-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--datatable-header-bg-color);
    cursor: ns-resize;
}

#histogram-container .resize-handle:hover,
#histogram-container .resize-handle.active {
    background: #a0a0a0;
    opacity: 0.7;
}

#histogram-toggle-btn.active {
    background-color: var(--drop-down-btn-bg-hover) !important;
    border: 1px solid var(--border-btn-color) !important;
}

.info-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
    font-style: italic;
}

.tab-content-size {
    height: 100%;
}

.column-chart {
    width: 100%;
    height: calc(100% - 20px);
    overflow: hidden;
    border: 1px solid var(--search-input-border);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    padding: 16px;
    background: var(--black1-to-white0)
}

.hide-graph {
    display: none;
    height: 100%
}

.hide-graph-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: var(--empty-response-text-color);
    width: 100%;
    height: 100%;
    border: 1px solid var(--search-input-border);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    background: var(--black1-to-white0)
}

/* Position-relative container for query-input bar */
.position-relative {
    position: relative;
    width: 100%;
}

/* Clear query button styles */
#clear-query-btn {
    position: absolute;
    top: 45%;
    right: 10px;
    transform: translateY(-50%);
    background-color: transparent;
    color: rgb(111, 108, 123);
    font-weight: lighter;
    font-size: 20px;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.ui-autocomplete>li>div {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    height: 28px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ui-state-hover,
.ui-state-active,
.ui-state-focus {
    color: #ffffff !important;
    text-decoration: none;
    background-color: var(--purple-2) !important;
    cursor: pointer;
    height: 28px;
    border: none !important;
    outline: none;
}

.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
    font-family: Inter, BlinkMacSystemFont, Helvetica, Arial, sans-serif !important;
    font-size: 12px;
}

.query-builder-container {
    box-shadow: 0px 2px 8px 0px var(--border-shadow);
    padding: 14px 10px;
    background-color: var(--qb-box-bg);
}

[data-theme='dark'] .query-builder-container {
    box-shadow: none;
}

#filter-box-1 {
    border-radius: 5px 0 0 5px;
}

#filter-box-1 li {
    background-color: var(--selected-filter-yellow);
}

#filter-box-2 li {
    background-color: var(--selected-filter-blue);
}

#filter-box-3 li {
    background-color: var(--selected-filter-red);
}

#empty-response {
    display: none;
}

.no-results-container,
.syntax-error-container {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--qb-box-bg);
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid var(--logs-expand-icon-box-color);
    box-shadow: 0 2px 4px var(--shadow-1);
}

.icon-container {
    width: 48px;
    height: 48px;
    background: var(--tab-active-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.syntax-error-container .icon-container {
    background: rgba(245, 87, 89, 0.30);
}

#corner-popup .icon-container {
    background: rgba(244, 187, 32, 0.30);
}

.main-message {
    font-size: 25px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.sub-message {
    font-size: 14px;
    color: var(--white-4);
    margin-bottom: 20px;
    line-height: 1.5;
}

.suggestions-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--logs-expand-icon-box-color);
    border-radius: 6px;
    font-size: 12px;
    background-color: var(--bg-color);
}

.suggestion-text {
    color: var(--white-4);
}

html[data-theme="dark"] .suggestion-text {
    color: var(--white-3);
}

html[data-theme="dark"] .icon-container svg {
    stroke: var(--white-0);
}

#symbol {
    width: 50px;
    height: 26px;
    color: var(--text-color) !important;
    margin-right: 5px;
}

/* FORMAT LOGS VISUALIZATION */
#formatBtn {
    position: relative;
}

.format-panel {
    position: absolute;
    top: 80px;
    left: 150px;
    width: 550px;
    background: var(--timepicker-bg-color);
    border: 1px solid var(--timepicker-border-color);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    z-index: 100;
    display: none;
    color: var(--table-or-regular-text-color);
}

.format-panel .panel-header {
    padding: 2px;
    text-align: right;
}

.sidebar {
    width: 120px;
    background-color: var(--drop-down-btn-bg-regular);
    border-right: 1px solid var(--border-color-regular);
}

.sidebar-item {
    padding: 12px 15px;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: var(--index-drop-down-item-hover-bg-color);
}

.sidebar-item.active {
    border-left-color: var(--purple-1);
    background-color: var(--bg-color);
    font-weight: 500;
}

.content-section {
    flex: 1;
    padding: 15px;
    min-height: 330px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-label {
    width: 150px;
    font-weight: 500;
}

.form-input {
    flex: 1;
}

.button-group {
    display: flex;
    border: 1px solid var(--border-color-regular);
    border-radius: 4px;
    overflow: hidden;
}

.group-btn {
    flex: 1;
    border: none;
    background: var(--timepicker-bg-color);
    padding: 3px 15px;
    cursor: pointer;
    border-right: 1px solid var(--border-color-regular);
    color: var(--table-or-regular-text-color);
}

.group-btn:last-child {
    border-right: none;
}

.group-btn.active {
    font-weight: 500;
    background: var(--index-drop-down-item-hover-bg-color);
    color: var(--text-color);
}

.close-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0 5px;
    margin-left: auto;
    font-size: 18px;
    line-height: normal;
}

.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px;
    border: 1px solid var(--border-color-regular);
    border-radius: 4px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    color: var(--text-color);
    padding: 1px 22px 1px 4px;
    margin-left: 4px;
    white-space: nowrap;
    position: relative;
    background-color: var(--selected-filter-blue);
}

.tag .remove-tag {
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: -3px;
    right: 8px;
    cursor: pointer;
}

.tag .remove-tag:hover {
    color: var(--error);
}

.tag-dropdown-container {
    position: relative;
}

.tag-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 1000;
    border-radius: 4px;
    min-width: 140px;
}

.tag-dropdown.show {
    display: block;
}

.tag-dropdown-content {
    max-height: 200px;
    overflow-y: auto;
    background: var(--index-drop-down-box-bg-color);
    border: 1px solid var(--timepicker-border-color);
    border-radius: 5px;
}

.tag-option {
    padding: 4px 12px;
    cursor: pointer;
}

.tag-option:hover {
    background: var(--index-drop-down-item-hover-bg-color);
    color: var(--index-drop-down-item-hover-text-color);
}

.rotation-options {
    display: flex;
    gap: 8px;
}

.rotation-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color-regular);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--timepicker-bg-color);
    color: var(--table-or-regular-text-color);
}

.rotation-btn:hover,
.rotation-btn.active {
    border-color: var(--purple-1);
    font-weight: 500;
    background: var(--index-drop-down-item-hover-bg-color);
    color: var(--text-color);
}

.rotation-icon {
    display: inline-block;
    font-family: monospace;
    font-size: 12px;
}

.rotation-0 {
    transform: rotate(0deg);
}

.rotation-neg45 {
    transform: rotate(-45deg);
}

.rotation-neg90 {
    transform: rotate(-90deg);
}

#format-dropdown {
    display: none;
    position: absolute;
    width: 260px;
    background: var(--index-drop-down-box-bg-color);
    border: 1px solid var(--border-color-regular);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    padding: 8px;
    z-index: 1;
    top: 27px;
    left: 160px;
}

#format-dropdown input {
    width: auto;
}

#format-dropdown label {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

#apply-format {
    float: right;
}

#format-table svg {
    height: 14px;
    stroke-width: 1.5px;
    stroke: var(--text-color);
}

.ui-widget input::placeholder {
    font-style: italic;
}